/**
 *Created by Heqi on 2018/1/17.
 */

import ItemDailyConsumption from '../../../components/customer/consumption/ItemDailyConsumption'
import ItemMonthConsumption from '../../../components/customer/consumption/ItemMonthConsumption'
import ItemPlatformDailyConsumption from '../../../components/customer/consumption/ItemPlatformDailyConsumption'
import ItemPlatformMonthConsumption from '../../../components/customer/consumption/ItemPlatformMonthConsumption'
import ItemDailyConsumptionLine from '../../../components/customer/consumption/line/ItemDailyConsumption'
import ItemMonthConsumptionLine from '../../../components/customer/consumption/line/ItemMonthConsumption'
import ItemPlatformMonthConsumptionLine from '../../../components/customer/consumption/line/ItemPlatformMonthConsumption'

const routers = [
  {path: 'item-daily-consumption', component: ItemDailyConsumption},
  {path: 'item-month-consumption', component: ItemMonthConsumption},
  {path: 'item-platform-daily-consumption', component: ItemPlatformDailyConsumption},
  {path: 'item-platform-month-consumption', component: ItemPlatformMonthConsumption},
  {path: 'item-daily-consumption-line', component: ItemDailyConsumptionLine},
  {path: 'item-month-consumption-line', component: ItemMonthConsumptionLine},
  {path: 'item-platform-month-consumption-line', component: ItemPlatformMonthConsumptionLine}
]

const menu = {
  title: '消费分析',
  icon: 'th-large',
  flag: true,
  sons: [
    {title: '项目日总消费', icon: 'list-ul', path: '/finance/item-daily-consumption', flag: true},
    {title: '项目消费月报', icon: 'list-ul', path: '/finance/item-month-consumption', flag: true},
    {title: '项目平台日消费', icon: 'list-ul', path: '/finance/item-platform-daily-consumption', flag: true},
    {title: '项目平台消费月报', icon: 'list-ul', path: '/finance/item-platform-month-consumption', flag: true}
  ]
}

export default {
  routers,
  menu
}
